package com.project.frba.bifront.client.model;

import java.util.Map;

public class BarChartInformation extends ChartInformation{
	
	private String domainAxisLabel;
	private String rangeAxisLabel;
	
	public String getDomainAxisLabel() {
		return domainAxisLabel;
	}

	public void setDomainAxisLabel(String domainAxisLabel) {
		this.domainAxisLabel = domainAxisLabel;
	}

	public String getRangeAxisLabel() {
		return rangeAxisLabel;
	}

	public void setRangeAxisLabel(String rangeAxisLabel) {
		this.rangeAxisLabel = rangeAxisLabel;
	}
	
	public String toString() {
		StringBuffer buffer = new StringBuffer("class:BarChartInformation;");
		buffer.append(super.toString());
		buffer.append("domainAxisLabel:" + this.getDomainAxisLabel() + ";");
		buffer.append("rangeAxisLabel:" + this.getRangeAxisLabel() + ";");
		
		return buffer.toString(); 
	}
	
	
	public void build(Map<String, String> info) {
		super.build(info);
		this.setDomainAxisLabel(info.get("domainAxisLabel"));
		this.setRangeAxisLabel(info.get("rangeAxisLabel"));
	}

}
